﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ComponentModel.DataAnnotations;

namespace Legazpi.Payroll.DataAccess.DataObjects
{
    public class PayrollDate : EntityBase<int>
    {
        [Required]        
        public DateTime Paydate { get; set; }
        
        public DateTime Startdate { get; set; }
        public DateTime Enddate { get; set; }

        public bool Active { get; set; }
        public bool HideInNavigation { get; set; }

        #region References
        
        public virtual ICollection<PayrollSummary> PayrollSummaries { get; set; }
        public virtual ICollection<Contribution> Contributions { get; set; }
        public virtual ICollection<GlobalAdjustment> GlobalAdjustments { get; set; }

        #endregion

        #region   Constructor        
        public PayrollDate()
        {
            PayrollSummaries = new HashSet<PayrollSummary>();
            Contributions = new HashSet<Contribution>();
            GlobalAdjustments = new HashSet<GlobalAdjustment>();
        }
        #endregion
    }
}
